﻿#ifndef ONLINEUSERCONTROLLER_H
#define ONLINEUSERCONTROLLER_H

#include <httpcontroller.h>
using namespace stefanfrings;

class OnlineUserController : public HttpController
{
    Q_OBJECT
public:
    explicit OnlineUserController(QObject *parent = nullptr);
    ~OnlineUserController();
    void route(QString path, QString method, HttpRequest &request, HttpResponse &response) override;
private:
    void getUserList(HttpRequest &request, HttpResponse &response);
};

#endif // ONLINEUSERCONTROLLER_H
